﻿<local:BaseDataVisualizer
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:BrainTechLLC.Silverlight.Controls;assembly=BrainTechLLC.Silverlight.Controls"
	x:Class="BrainTechLLC.Silverlight.ClientApplication.EditCommandToPerform"	
    xmlns:BrainTechLLC="clr-namespace:BrainTechLLC;assembly=BrainTechLLC.Silverlight.Core" 
    xmlns:loc="clr-namespace:BrainTechLLC.Silverlight.ClientApplication">
    <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" Name="gridData" Background="#FFFFFFFF">
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <ContentControl Content="Command to Perform:" Style="{StaticResource TextBlockContentStyle}"/>
            <loc:TypeAndMethod Name="typeAndMethod" Method="{Binding Mode=TwoWay, Path=PerformMethod}"                                   
                                   HorizontalAlignment="Stretch" Margin="140,0,0,0" Width="Auto" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <ContentControl Content="Can Perform:" Style="{StaticResource TextBlockContentStyle}"/>
            <loc:TypeAndMethod Name="canPerform" Method="{Binding Mode=TwoWay, Path=CheckPermittedMethod}"                                   
                                   HorizontalAlignment="Stretch" Margin="140,0,0,0" Width="Auto" />
        </Grid>
        <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="Auto">
            <ContentControl Content="Reschedule MS:" Style="{StaticResource TextBlockContentStyle}"/>
            <TextBox Margin="140,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Top" Text="{Binding Mode=TwoWay, Path=RescheduleMS}" Style="{StaticResource TextBoxNoScroller}" />
        </Grid>
    </StackPanel>
</local:BaseDataVisualizer>